﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;

namespace ITSupportPlatform.DAL
{
    public class SharePointHelper
    {
        public static ShartPointService GetService()
        {
            ShartPointService service = new ShartPointService();
            service.Credentials = new System.Net.NetworkCredential(ConfigurationManager.AppSettings["ShartPointService_UserName"], ConfigurationManager.AppSettings["ShartPointService_PassWord"], ConfigurationManager.AppSettings["ShartPointService_Domain"]);
            service.Url = ConfigurationManager.AppSettings["ShartPointService_Url"];
            return service;
        }
    }
}